package com.zx.rbac.ums.model.mapstruct;

import com.zx.rbac.ums.model.UmsAdminEntity;
import com.zx.rbac.ums.model.dto.UmsAdminDto;
import com.zx.rbac.ums.model.vo.UmsAdminVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface UmsAdminBeanMapper {

    UmsAdminBeanMapper INSTANCE = Mappers.getMapper(UmsAdminBeanMapper.class);

    /**
     * UmsAdminDto转为UmsAdminVo
     */
    UmsAdminVo dtoTOvo(UmsAdminDto dto);

    /**
     * entity转为UmsAdminDto
     */
    UmsAdminDto entityTODto(UmsAdminEntity entity);

    /**
     * entity转为UmsAdminDto
     */
    UmsAdminEntity dtoTOEntity(UmsAdminDto dto);

}
